package com.cuc.services;

public class Userservice {

    private String username;
    private FielService fielService;
    private String provice;

    public void setProvice(String provice){
        this.provice = provice;
        System.out.println(provice);
    }

    public Userservice(String username,FielService fielService){
        System.out.println("有参的构造函数");
        this.username = username;
        this.fielService = fielService;
    }
    public void getData(){
        System.out.println(username);
        fielService.getData();
        System.out.println("调用了userservice");
    }
}
